I've tailored the threaded port scanner as a module in a program I'm using. I'm calling the module from my main program.
The issue I have is that the threads never seem to terminate. So if I run a port scan on a whole /24 network a couple of times, it eventually dies because it can't start any new threads.
I've added:
for thread in threading.enumerate(): print(thread.name)
I can see them add up and never start over at "thread 1".
Can anyone help me understand how to fix this?
You must be logged in to post. Please login or register an account.